<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ page import="org.gc.common.entity.security.User" %>
<%@ page import="org.gc.webapp.util.BizUtil" %>
<%@ include file="/common/taglibs.jsp"%>
<div id="topToolBar">
	<%
	    User loginUser = BizUtil.getLoginUser();
			if(loginUser == null){
	%>
		<a href="<s:url namespace="/login" action="login" includeParams="none"/>">登录</a>
		<a href="<s:url namespace="/register" action="register-input" includeParams="none"/>">注册</a>
	<%
		}else{
		    String nick = loginUser.getName();
		    if(nick == null){
		        nick = loginUser.getUsername();
		    }
	%>
		<span style="margin:0px 10px 0px;"><%=nick %>，欢迎您！</span>
		<a href="<s:url value="/"/>">我的Group</a>
		<a href="<s:url value="/login/logout.do"/>">退出</a>
	<%   
		}
	%>
	<a href="<s:url value="#"/>">帮助</a>
	<a href="<s:url value="#"/>">留言</a>
</div>
<div id="branding">
	<a href="<s:url value="/index/index.html"/>"><!-- <img src="<s:url value="/images/new/logo.gif"/>"/> --></a>
</div>

<%-- Put constants into request scope --%>
